const {
  sequelize,
  DataTypes,
  Sequelize,
  Op,
  BaseModel,
  getPaginationList,
} = require('../baseModel')

class ArticleAccessLog extends BaseModel {}

ArticleAccessLog.initModel(
  {
    ip: {
      type: DataTypes.STRING,
      comment: '访问地址',
    },
    url: {
      type: DataTypes.STRING,
      comment: '访问路径',
    },
    keyword: {
      type: DataTypes.STRING,
      comment: '关键词',
    },
    client: {
      type: DataTypes.STRING,
      comment: '访问的客户端',
    },
    navigator: {
      type: DataTypes.STRING,
      comment: '访问的客户端信息',
    },
  },
  {
    tableName: 'xs_article_access',
    comment: '页面访问日志表',
  }
)

module.exports = ArticleAccessLog
